package com.hjb.service.config.constant.enums;

import java.util.HashMap;
import java.util.Map;

import com.hjb.service.config.constant.Key;

/** 
* @ClassName    : FQorderStatus 
* @author       : panxingwu 
* @date         : 2018年1月21日 下午12:36:28 
* @Description  : 分期订单状态
*/
public enum FQorderStatus implements EnumConstants{
	FQ_STATUS_0("0","待审核"),
	FQ_STATUS_1("1","待还款"),
	FQ_STATUS_2("2","已还款"),
	FQ_STATUS_3("3","已逾期"),
	;
	private String value;
	private String lable;
	
	private FQorderStatus(String value, String lable) {
		this.value = value;
		this.lable = lable;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getLable() {
		return lable;
	}

	public void setLable(String lable) {
		this.lable = lable;
	}

	public static Map<String,String> getConfig(String value){
		Map<String,String> result = null;
		//循环输出 值  
		for (FQorderStatus e : FQorderStatus.values()) {  
		   if(e.getValue().equals(value)) {
			   result = new HashMap<String,String>();
			   result.put(Key.VALUE, value);
			   result.put(Key.LABLE, e.getLable());
			   break;
		   }
		}  
		return result;
	}
}
